Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

107
Visualizações
WebRTC - Screen recording | Audio not recording - issue

I'm attempting to create a simple WebRTC with audio and video screen recording; the video appears to be fine, but the audio is missing from the file, rest of the others functionalities working absolutely fine. Did anyone face the same issue? any solution?

function startRecording1(stream) {
        mediaRecorder = new MediaRecorder(stream, {
            mimeType: 'video/webm;codecs=vp9',
            audio: true,
            video: true
        });

        mediaRecorder.start(1000);
        toggleRecordingIcons(true);

        mediaRecorder.ondataavailable = function (e) {
            recordedStream.push(e.data);
        };

        mediaRecorder.onstop = function () {
            toggleRecordingIcons(false);
            //h.saveRecordedStream(recordedStream, username);
            uploadInS3Bucket(recordedStream);
            
        };

        mediaRecorder.onerror = function (e) {
            console.error(e);
        };
    }

// Call this function here

     getUserFullMedia().then((videoStream) => {
                        startRecording1(videoStream);
                    }).catch(() => { });



     getUserFullMedia() {
    
            if (this.userMediaAvailable()) {
    
                return navigator.mediaDevices.getUserMedia({
                    video: true,
                    audio: {
                        echoCancellation: true,
                        noiseSuppression: true
                    },
                    audio: true
                });
            }
    
            else {
                throw new Error('User media not available');
            }
}
about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda